package com.warrior.superdata.mysql.entity.dto;

import com.warrior.superdata.base.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Description:
 * @ClassName: ApiTableRelationDto.java
 * @date: 2022/3/8 18:09
 * @author xujian
 */
@Data
public class ApiTableRelationDto extends BaseDto {

    @ApiModelProperty(value = "接口id")
    private Integer apiId;

    @ApiModelProperty(value = "主表名称")
    private String mainTableName;

    @ApiModelProperty(value = "关联表名称")
    private String associationTableName;

    @ApiModelProperty(value = "关联条件 如： a.id=b.id")
    private String associationCondition;

    @ApiModelProperty(value = "关联类型 1:LEFT JOIN 2:INNER JOIN 3:RIGHT JOIN")
    private Integer relationType;

}
